package com.capgemini.remind.mapper;

import com.capgemini.core.PageList;
import com.capgemini.remind.pojo.AnnouncementCustomerInfo;
import com.capgemini.remind.pojo.CustomerGroup;
import com.capgemini.remind.pojo.CustomerPromotion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerGroupMapper {

	List<CustomerGroup> queryList(CustomerGroup customerGroup);

	List<CustomerGroup> queryPage(final PageList<CustomerGroup> pageList);

	int insert(CustomerGroup pojo);

	int updateById(CustomerGroup pojo);

	CustomerGroup getById(String id);

	int deletePhysicalById(String id);

	List<AnnouncementCustomerInfo> queryCustomerPage(PageList<AnnouncementCustomerInfo> pageList);

	List<AnnouncementCustomerInfo> queryCustomerPageForAdd(PageList<AnnouncementCustomerInfo> pageList);

	int delCustomerFromGroup(@Param("dealerNum") String dealerNum,@Param("customerId") String customerId,@Param("groupId") String groupId);

	void addCustomerToGroup(@Param("batchId")String batchId, @Param("dealerNum")String dealerNum, @Param("groupId")String groupId, @Param("list")List<String> selectedIdList);
	void processCustomerToGroup(@Param("batchId")String batchId);
}